Use the right types for the GdkSurface::event arguments
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 19 May 2020 11:18:24 +0000 (12:18 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 19 May 2020 11:21:22 +0000 (12:21 +0100)
commitdd4d6930b5cbd2e63f9b875477f1311780ce5c08
treec8f97d2b39a07c9a5e3e297c212ac057a313aa8b
parent7fc2d9adc09b029de936e39bc390e7d0a01d5476
Use the right types for the GdkSurface::event arguments

We pass the GdkEvent as a pointer, because the autogenerated marshallers
don't know how to handle GTypeInstance-derived classes.

Since the GValue box that we use in the marshaller passes the GdkEvent
instance as is, we also need to acquire a reference before invoking the
closure, and release it afterwards, to ensure that the GdkEvent instance
survices the invocation.
gdk/gdksurface.c